package com.badibadi.activity;

import com.badibadi.mytools.Utils;
import com.badibadi.uniclubber.R;
import com.badibadi.uniclubber.R.id;
import com.badibadi.uniclubber.R.menu;
import com.badibadi.uniclubber.R.string;

import android.os.Bundle;
import android.os.Handler;
import android.app.Activity;
import android.view.Menu;
import android.widget.TextView;

public class ValidationEmailWebViewActivity extends WebMailActivity {

	
	private String url="http://www.200.net/html/mail/index.htm";
	
//	private android.os.Handler handler=new Handler(){
//		//Han
//		public void handleMessage(android.os.Message msg) {
//			if(msg.what==1)
//			{
//			
//			}
//			
//			
//			
//		};
//		
//	};
	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		
		init();
	}

	private void init()
	{	
		Utils.showPrgress(ValidationEmailWebViewActivity.this);
		new Thread(new Runnable() {
			
			@Override
			public void run() {
				// TODO Auto-generated method stub
				try {
					Thread.sleep(2000);
					Utils.ExitPrgress(ValidationEmailWebViewActivity.this);
				} catch (Exception e) {
					// TODO Auto-generated catch block
					   
				}
			}
		}).start();
		((TextView)(this.findViewById(R.id.web_mail_title))).setText(getResources().getString(R.string.ValidationEmail));
	}
	/**
	 * 返回一个要打开的网址
	 */
	@Override
	protected String initEmail() {
		// TODO Auto-generated method stub
		return url;
	}
	

//	@Override
//	public boolean onCreateOptionsMenu(Menu menu) {
//		// Inflate the menu; this adds items to the action bar if it is present.
//		getMenuInflater().inflate(R.menu.validation_email_web_view, menu);
//		return true;
//	}

}
